package com.graduation.table.post.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.graduation.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description: 岗位表
 * @Author: jeecg-boot
 * @Date:   2022-04-08
 * @Version: V1.0
 */
@Data
@TableName("post")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="post对象", description="岗位表")
public class Post extends BaseEntity {
    
	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
	private String id;
	/**岗位名称*/
    @ApiModelProperty(value = "岗位名称")
	private String name;
	/**公司id*/
    @ApiModelProperty(value = "公司id")
	private String companyId;
	/**类型*/
    @ApiModelProperty(value = "类型")
	private String type;
	/**工作时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "工作时间")
	private Date workTime;
	/**平均薪资*/
    @ApiModelProperty(value = "平均薪资")
	private java.math.BigDecimal averageWage;

    @TableField(exist = false)
	private String companyName;

}
